﻿namespace FrameworkCore.Exceptions;

public class NotFoundException : ServerException
{
    public NotFoundException(string message = "没有找到")
        : base(message, System.Net.HttpStatusCode.NotFound)
    {
    }
    public NotFoundException(string name, object key)
         : base($"实体 \"{name}\" ({key}) 不存在", System.Net.HttpStatusCode.NotFound)
    {
    }
}
